from django.db import models


class User(models.Model):
    uid = models.AutoField(primary_key=True)
    phone = models.CharField(unique=True, max_length=11)
    password = models.CharField(max_length=255)
    username = models.CharField(max_length=255)
    avatar = models.CharField(max_length=255)
    sex = models.CharField(max_length=1)

    class Meta:
        managed = False
        db_table = 'user'
